<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			
			var date = new Date();
			console.log(date.getFullYear());
			
			
			// i = ignore 忽略大小写
			var re = new RegExp('a','i');
			var str='xyzA';
			
			//字符串有个方法 serch 里面传1个正则表达式。返回值是下标 如果找不到 返回-1
			var xb =str.search(re);
			console.log(xb);
			
			
			
		</script>
	</body>
</html>
